import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/about',
    name: 'about',
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  },
  {
    path: '/nav',
    name: 'nav',
    component: () => import(/* webpackChunkName: "Nav" */ '../views/NavView.vue')
  },
  {
    path: '/cinema',
    name: 'cinema',
    component: () => import(/* webpackChunkName: "cinema" */ '../views/CinemaView.vue')
  },
  {
    path: '/store',
    name: 'store',
    component: () => import(/* webpackChunkName: "cinema" */ '../views/StoreView.vue')
  },
  {
    path: '/pass',
    name: 'pass',
    component: () => import(/* webpackChunkName: "pass" */ '../views/PassView.vue')
  },
  {
    path: '/condition',
    name: 'condition',
    component: () => import(/* webpackChunkName: "condition" */ '../views/ConditionView.vue')
  },
  {
    path: '/readCondition',
    name: 'readCondition',
    component: () => import(/* webpackChunkName: "readCondition" */ '../views/ReadConditionView.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
